﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KendoMvcUI.Core;
using KendoMvcUI.Common;
using System.Web.Mvc;

namespace KendoMvcUI.UI
{
    public class ProgressBar:KendoUIBase
    {
        public ProgressBar(KendoUIControlSettings settings,ViewContext context,IViewDataContainer viewDataContainer)
            :base(settings,context,viewDataContainer)
        { }
        public override string RenderHtml()
        {
            return "<div id=\"{0}\"></div>".Formator(Settings.Id);
        }
    }
    public class ProgressBarSettings : KendoUIControlSettings
    {
        public ProgressBarSettings()
            : base("kendoProgressBar")
        { }
        /// <summary>
        /// Important This property is applicable only when the type of the ProgressBar is set to chunk.
        /// default:5
        /// </summary>
        public int? ChunkCount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool? Enable { get; set; }
        public int? Max { get; set; }
        public int? Min { get; set; }
        /// <summary>
        /// default: "horizontal"
        /// The orientation of the ProgressBar. Possible values are horizontal and vertical.
        /// </summary>
        public string Orientation { get; set; }
        public bool? Reverse { get; set; }
        public bool? ShowStatus { get; set; }
        /// <summary>
        /// Specifies the type of the ProgressBar. The supported types are value, percent and chunk.
        /// Important The chunk progress type is not supported in Internet Explorer 7.
        /// </summary>
        public string Type { get; set; }
        public int? Value { get; set; }

        #region 事件
        public string On_Change { get; set; }
        public string On_Complete { get; set; }
        #endregion
    }
}
